package com.jzr.bedside.db1.model;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 食堂订单
 * </p>
 *
 * @author henry
 * @since 2019-08-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TFoodOrder对象", description="食堂订单")
public class TFoodOrder implements Serializable {
    private static final long serialVersionUID = 1L;
    public static final String TableName = "t_food_order";
    public static final String Id_ = "id";
    public static final String PatientCode_ = "patient_code";
    public static final String OrderDate_ = "order_date";
    public static final String TotalQty_ = "total_qty";
    public static final String TotalAmount_ = "total_amount";
    public static final String Phone_ = "phone";
    public static final String Status_ = "status";
    public static final String Remark_ = "remark";
    public static final String UpdateBy_ = "update_by";
    public static final String UpdateTime_ = "update_time";


    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "病人编码")
    @TableField("patient_code")
    private String patientCode;

    @ApiModelProperty(value = "订单日期")
    @TableField("order_date")
    private LocalDateTime orderDate;

    @ApiModelProperty(value = "总数量")
    @TableField("total_qty")
    private Integer totalQty;

    @ApiModelProperty(value = "总金额")
    @TableField("total_amount")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "订单状态: 0=取消 1=有效 2=交易完成")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
